package com.link.base.base.wechat.service;

import com.link.base.base.wechat.model.WxImage;
import com.link.core.basic.service.BasicService;

import java.util.List;
import java.util.Map;

/**
 * 微信公众号图片素材service
 *
 * @author 路江
 * @date 2019/02/26 11:00
 */
public interface WxImageService extends BasicService<WxImage> {

    /**
     * 删除图片
     *
     * @author 路江
     * @date 2019/02/26 11:00
     * @param entity
     */
    void deleteimage(WxImage entity);

    /**
     * 修改图片
     *
     * @author 路江
     * @date 2019/02/26 11:00
     * @param entity
     * @return
     */
    Map<String, Object> updateImage(WxImage entity);

    /**
     * 批量修改
     *
     * @author 路江
     * @date 2019/02/26 11:00
     * @param wxImageList
     * @throws Exception
     */
    public void batchUpdateImage(List<WxImage> wxImageList) throws Exception;

    /**
     * 上传微信图片素材
     *
     * @author lujiang
     * @date 2019/02/26 10:47
     * @param wxImage 图片对象
     * @return
     * @throws Exception
     */
    Map<String,Object> uploadImg(WxImage wxImage) throws Exception;

    /**
     * 删除微信图片素材
     *
     * @author lujiang
     * @date 2019/02/26 10:47
     * @param id 图片记录id
     * @return
     * @throws Exception
     */
    Map<String,Object> removeImg(Long id) throws Exception;
}
